package framework.ui;

import javafx.scene.Node;
import javafx.scene.control.Label;

import org.client.otdr.OtdrMap;
import org.openems.entity.Entity;
import org.openems.entity.Key;
import org.openems.entity.MarkerEntity;

import framework.DomainService;
import framework.mashup.GoogleMap;

public class EmsMarkerGoogleMap extends EmsMarker {

	private GoogleMap google;

	@Override
	protected Node getContent(MarkerEntity markerEntity) {
		if (google == null) {
	        google = new OtdrMap(getService(), false).getGoogleMap();
	        google.setPrefSize(170.0, 120.0);
	        google.setLayoutX(50);
	        google.setLayoutY(50);
		}
        return google;
	}

	@Override
	protected String getBalloonImageFile() {
		return "/framework/ui/Map-Marker-Board-Azure-icon.png";
	}

	public EmsMarkerGoogleMap(Key markerKey, IChart chart,
			DomainService service) {
		super(markerKey, chart, service);
		// TODO Auto-generated constructor stub
	}

	@Override
	protected void markerChanged(MarkerEntity markerEntity) {
		// TODO Auto-generated method stub
		
	}

}
